Boot Yocto on Beaglebone Black from SD-Card - linux

I'm currently trying to boot my Beaglebone Black with the latest Yocto version from a SD-Card without erasing the OS from the eMMC of my BBB.
The problem is that (although the SD-Card is inserted) the BBB keeps booting the eMMC image.
More details on the U-Boot an Linux versions are shown below:
UBOOT
U-Boot 2015.01-00001-gb2412df (Jan 29 2015 - 15:01:06)
arm-linux-gnueabihf-gcc (Linaro GCC 2014.11) 4.9.3 20141031 (prerelease)
GNU ld (GNU Binutils) Linaro 2014.11-3-git 2.24.0.20141017
Linux on BBB's eMMC
Linux beaglebone 3.8.13-bone70 #1 SMP Fri Jan 23 02:15:42 UTC 2015 armv7l GNU/Linux

You need to press the boot-switch while resetiing / powering up:
See in this picture:
BBB Switch Caption

Solution 1 (MLO file)
To force a boot from the microSD card, delete the MLO file in the
FAT partition of the eMMC.
You can access this when the board is connected over the USB cable
and it appears as a thumbdrive.
from: http://elinux.org/Beagleboard:BeagleBone_Black_FAQ#How_can_I_just_boot_from_the_microSD_instead_of_the_eMMC.3F
Solution 2 (Boot button)
Push and hold the boot button and apply power.
http://www.elinux.org/Beagleboard:BeagleBoneBlack
from: https://groups.google.com/forum/#!category-topic/beagleboard/_mOlo6T-70E

Related

Self-compiled linux kernel can't boot on btrfs

I'm a newcomer for linux kernel development. This is second question about loading self-compiled kernel(current stable version 4.8.6). The error messages printed during booting are as below:
linux-05e3 mount[282]: mount: unknown filesystem type 'btrfs'
linux-05e3 systemd1: Dependency failed for Initrd Boot File System
linux-05e3 systemd1: Dependency failed for Reload Configuration
Actually the file system type of my root partition is 'btrfs', and it is no problem with kernel version 4.1.12.1-default.
My partition table is :
Result of uname -a is :
Linux linux-05e3 4.1.12-1-default #1 SMP PREEMPT Thu Oct 29 06:43:42
UTC 2015 (e24bad1) x86_64 x86_64 x86_64 GNU/Linux
The .config file is just copied from the one used for 4.1.12.1-default. And I've just ran make menuconfig with nothing modified after copying that file.
Can anyone give some useful tips to me. I really need a linux kernel development expert to give more instructions to me as a beginner. Thanks a million.

Controlling fan speed on lenovo yoga 2.13 with linux mint

I am trying to fix the problem of controlling fan speed. (The fan are too loud and are running almost always unnecessarily) I followed this manual: https://askubuntu.com/questions/22108/how-to-control-fan-speed but I face the following problem. After the first step:
sudo sensors-detect
The /etc/modules file contain this
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
lp
rtc
# Generated by sensors-detect on Sun Jul 5 22:45:57 2015
# Chip drivers
coretemp
# Generated by sensors-detect on Sun Jul 5 23:21:04 2015
# Chip drivers
coretemp
# Generated by sensors-detect on Sun Jul 5 23:32:50 2015
# Chip drivers
coretemp
# I2C adapter drivers
i2c-viapro
i2c-isa
# I2C chip drivers
eeprom
it87
# Generated by sensors-detect on Sat Apr 16 11:49:27 2016
# Chip drivers
coretemp
cpuid
i2c-dev
In the next step: sudo service module-init-tools restart
I get this fail:
module-init-tools: unrecognized service
Does it means, that there is not sensor available to control fan speed? Is it possible to fix it somehow? I heave the following platform: Linux Vlad-Lenovo 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux The fan noise really makes me crazy. Could you help me with this problem.
Thanks in advance

Video4Linux Loopback Device on Linux4Tegera

I am interfacing Bumblebee2 camera with Nvidia Tegra TK1 board. I have installed firewire1394 driver along with coriander 2.0.2 to get the camera output and it is working fine. But I am not able to load the video for Linux module. I have installed the following two packages as well using synaptic
v4l2loopback-utils
qv4l2
I have following version of Linux kernel on Nvida Tegra TK1 board.
uname -a
Linux tegra-ubuntu 3.10.40-grinch-21.3.4 #1 SMP PREEMPT Fri May 1 10:41:09 UTC 2015 armv7l armv7l armv7l GNU/Linux
I downloaded the stable version of Video4Linux Loopback Device from here
I follow the steps mentioned in the readme file and when I tried to make it, I got the following errors.
make -C /lib/modules/3.10.40-grinch-21.3.4/build SUBDIRS=/home/ubuntu/vloopback modules
make: *** /lib/modules/3.10.40-grinch-21.3.4/build: No such file or directory. Stop.
make: *** [all] Error 2
I would appreciate if someone can help me to install video for Linux loopback device.
Current running kernel Linux tegra-ubuntu 3.10.40-grinch-21.3.4 does not have v4l2loopback support. I used module assistant to compile v4l2loopback module.
sudo aptitude install v4l2loopback-source module-assistant
sudo module-assistant auto-install v4l2loopback-source
Don't forget to mention the current running kernel headers. Then build and make v4l2loopback from here

Linux kernel version from an ISO image

With the uname command, and it's different options, I can get kernel version installed on a machine.
Suppose if I wanted to find out the kernel version from an ISO image, by just mounting it (without installation). How can I find the complete kernel version from ISO with out installation?
You can use the command file.
file /mnt/boot/vmlinuz-x.y.z
This will generate an output like this
/boot/vmlinuz-3.6.10-2.fc17.x86_64: Linux kernel x86 boot executable bzImage, version 3.6.10-2.fc17.x86_64 (mockbuild#) #1 SMP Tue Dec 11 18:07:34 UT, RO-rootFS, swap_dev 0x4, Normal VGA
Note: Ubuntu kernel = casper/vmlinuz

Wireless Setup on Arch Linux

I am a new Archer, and when I compile wireless driver on my computer, I come across a problem:
make: *** /lib/modules/3.1.4-1-ARCH/build: No such file or directory. Stop.
My wireless firmware is Broadcom BCM4313, and I have installed linux-headers-3.1.5-1 in my computer. I do not know how to solve this problem.
Here is some information about my system:
$ uname -a
Linux myhost 3.1.4-1-ARCH #1 SMP PREEMPT Tue Nov 29 09:08:04 UTC 2011 i686 AMD Phenom(tm) II N930 Quad-Core Processor AuthenticAMD GNU/Linux
$ ls /lib/modules/3.1.4-1-ARCH
extramodules modules.dep modules.order
kernel modules.dep.bin modules.pcimap
modules.alias modules.devname modules.seriomap
modules.alias.bin modules.ieee1394map modules.softdep
modules.builtin modules.inputmap modules.symbols
modules.builtin.bin modules.isapnpmap modules.symbols.bin
modules.ccwmap modules.ofmap modules.usbmap
I recommend you use broadcom-wl package. It works for me with broadcom 4312 (I know you have 4313, but i'm taking a wild guess it should work for you too). The module name will be wl. It's the closed source driver because the open source driver sometimes takes up to 100% of my CPU for some reason.
Installing packages from AUR: https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages

Resources