Last active
April 16, 2016 17:23
-
-
Save Mausy5043/2980072e6928a7d58da3 to your computer and use it in GitHub Desktop.
BeageBone Black changes to default installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Connected to ethernet | |
# Power via USB | |
# First-time login using ssh: | |
# $ ssh [email protected] (pwd shown at login) | |
# change default password | |
passwd | |
# we will install for user `root` | |
sudo su - | |
nano /boot/uEnv.txt | |
# Disable the HDMI to release extra GPIO pins: | |
# When booted uncomment this line in /boot/uEnv.txt: | |
cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN | |
# or for jessie: | |
dtb=am335x-boneblack-overlay.dtb | |
# This should be done before running boneboot!!! | |
cd /opt/scripts/tools/ | |
git pull | |
echo "Growing main partition" | |
./grow_partition.sh | |
reboot | |
#echo "Updating KERNEL" | |
#./update_kernel.sh | |
#reboot | |
##{ in boneboot | |
## change hostname | |
#nano /etc/hostname | |
# #change `beaglebone` to new hostname | |
#nano /etc/hosts | |
# #change `beaglebone` to new hostname | |
# | |
#nano /etc/timezone | |
# # Europe/Amsterdam | |
#cp /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime | |
#locale-gen "en_US.UTF-8" | |
#dpkg-reconfigure locales | |
#nano /etc/ssh/sshd_config | |
# Comment out: | |
## Allow client to pass locale environment variables | |
## AcceptEnv LANG LC_* | |
# | |
# Change these: | |
# PermitRootLogin no | |
# PermitEmptyPasswords no | |
# recreate SSH keys (call me paranoid) | |
#rm /etc/ssh/ssh_host_* | |
#/usr/sbin/dpkg-reconfigure openssh-server | |
# logout | |
#exit | |
# ****************************************************** | |
# log back in: > ssh [email protected] | |
#change passwd | |
#sudo apt-get update | |
#sudo apt-get -yuV install debian-keyring debian-archive-keyring | |
##} | |
##{ in `boneboot` | |
##probably already present: | |
#sudo apt-get -yuV install apt-utils bc git htop screen logrotate lsof nano python rsync sudo | |
## probably not yet installed | |
#sudo apt-get -yuV install nfs-common | |
##} | |
# mountpoints | |
#sudo mkdir -p /mnt/share1 | |
#sudo mkdir -p /mnt/backup | |
#sudo nano /etc/fstab | |
# Add these: | |
# tmpfs /tmp tmpfs nodev,nosuid,mode=1777,size=64M 0 0 | |
# tmpfs /srv tmpfs nodev,size=512K 0 0 | |
# tmpfs /var/log tmpfs defaults,noatime,nosuid,mode=0755,size=64M 0 0 | |
# boson.lan:/srv/array1/backup /mnt/backup nfs4 nouser,atime,rw,dev,exec,suid,noauto 0 0 | |
# boson.lan:/srv/array1/dataspool /mnt/share1 nfs4 nouser,atime,rw,dev,exec,suid,auto 0 0 | |
# defaults: rw, suid, dev, exec, auto, nouser, and async | |
# default settings for screen | |
#echo "shell -\$SHELL" > .screenrc | |
#echo "defscrollback 10000" >> .screenrc | |
#echo "hardstatus on" >> .screenrc | |
#echo "hardstatus alwayslastline" >> .screenrc | |
#echo "hardstatus string \"%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %l %{..Y} %Y-%m-%d %c \"" >> .screenrc | |
# ssh | |
#mkdir -m 0700 -p .ssh | |
#nano .profile | |
# Add at the end: | |
# $HOME/bin/chkupdate.sh | |
nano .bashrc | |
# Uncomment: | |
# force_color_prompt=yes | |
# Change default prompt: | |
# PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\] \[\033[01;37m\]\$\[\033[00m\] ' | |
# Uncomment these: | |
# alias ll='ls -l' | |
# alias la='ls -al' | |
#sudo find / -group 116 |more | |
#sudo chown root:root <found files> | |
#sudo chmod 744 <found files> | |
screen | |
sudo apt-get upgrade | |
sudo apt-get autoclean | |
sudo apt-get autoremove | |
sudo systemctl --system daemon-reload | |
# set the boneboot branch to be used | |
echo "master" > .boneboot.branch | |
# Clone the `boneboot` repo | |
git clone https://github.com/Mausy5043/boneboot.git | |
# | |
pushd boneboot | |
chmod 744 * | |
./00-run-scripts.sh | |
popd | |
tail -f post-boot.log | |
root@alex:~# cd /sys/kernel/config/device-tree/overlays/ | |
root@alex:.../device-tree/overlays# ls | |
root@alex:.../device-tree/overlays# mkdir foo # you can use any name you want | |
root@alex:.../device-tree/overlays# cd foo/ | |
root@alex:.../overlays/foo# ls | |
dtbo path status | |
root@alex:.../overlays/foo# cat status | |
unapplied | |
root@alex:.../overlays/foo# # pick whichever option you prefer: | |
root@alex:.../overlays/foo# echo filename.dtbo >path # option 1 | |
root@alex:.../overlays/foo# cat /lib/firmware/filename.dtbo >dtbo # option 2 | |
root@alex:.../overlays/foo# cat status | |
applied | |
root@alex:.../overlays/foo# cd .. | |
root@alex:.../device-tree/overlays# rmdir foo # removes overlay (if possible) | |
root@alex:.../device-tree/overlays# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get link to latest image | |
# on boson: | |
mkdir /tmp/BBB | |
cd /tmp/BBB | |
wget -O http://builds.beagleboard.org/images/master/08132bf0d0cb284d1148c5d329fe3c8e1aaee44d/bone-debian-8.2-tester-2gb-armhf-2015-11-12-2gb.img.xz | |
unxz <name of downloaded .img.xz file> | |
#OR on Mac - Terminal | |
cd Downloads | |
curl -# -O http://builds.beagleboard.org/images/master/08132bf0d0cb284d1148c5d329fe3c8e1aaee44d/bone-debian-8.2-tester-2gb-armhf-2015-11-12-2gb.img.xz | |
# ALTERNATIVELY get the weekly build from: | |
# http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Debian_Image_Testing_Snapshots | |
# look for the "Jessie Snapshot console" | |
# then get the image marked as "microSD/Standalone: (console) (BeagleBone/BeagleBone Black/BeagleBone Green)" | |
# unarchive downloaded file (The Unarchiver.app) | |
# use SDFormatter to format the SD card | |
# use ApplePi-Baker to write the .img-file on the SD card | |
# Power down BeagleBone | |
# Insert SD-card | |
# Power ON | |
# login as [email protected] | |
# To flash to the eMMC: | |
nano /boot/uEnv.txt | |
# uncomment last line : cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh | |
poweroff | |
# Hold down BOOT-button (button on the PCB on top of SD-card slot) | |
# Apply power | |
# Wait until all 4 LEDs are ON. Then release BOOT-button. | |
# Wait for flash to complete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ lsmod | |
Module Size Used by | |
rpcsec_gss_krb5 30103 0 | |
spidev 7772 0 | |
c_can_platform 7415 0 | |
c_can 12008 1 c_can_platform | |
can_dev 13716 1 c_can | |
spi_omap2_mcspi 13437 0 | |
tieqep 6578 0 | |
pwm_tiehrpwm 5411 0 | |
pwm_tiecap 4093 0 | |
8021q 21998 0 | |
garp 6873 1 8021q | |
mrp 8644 1 8021q | |
stp 2211 1 garp | |
llc 5775 2 stp,garp | |
snd_soc_evm 6272 0 | |
pruss_remoteproc 17248 0 | |
* omap_rng 5254 0 | |
tilcdc 30695 0 | |
rng_core 8893 1 omap_rng | |
usb_f_acm 8154 1 | |
u_serial 12575 3 usb_f_acm | |
usb_f_rndis 26506 1 | |
* g_multi 5734 0 | |
usb_f_mass_storage 50259 2 g_multi | |
u_ether 13549 2 usb_f_rndis,g_multi | |
* libcomposite 53868 4 usb_f_acm,usb_f_rndis,g_multi,usb_f_mass_storage | |
snd_soc_davinci_mcasp 20841 2 | |
snd_soc_edma 1174 1 snd_soc_davinci_mcasp | |
tda998x 14450 0 | |
snd_soc_hdmi_codec 2522 1 | |
uio_pdrv_genirq 3745 0 | |
uio 10133 1 uio_pdrv_genirq | |
* = same as for wheezy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ lsmod | |
Module Size Used by | |
* g_multi 50407 2 | |
* libcomposite 15028 1 g_multi | |
* omap_rng 4062 0 | |
mt7601Usta 458758 0 | |
* = also in jessie |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment