$ mkdir -p beaglelfs/{sources,rootfs_install,boot_mnt,rootfs_mnt}
Download the latest i686 Binary TAR of the ARM GNU/Linux (glibc-based) Lite Toolchain:
#include <stdio.h> | |
#include <unistd.h> | |
#include <modbus.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <sys/ioctl.h> | |
#include <linux/serial.h> | |
#include <asm/ioctls.h> | |
#define NB_REGS 2 |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
export HISTCONTROL=ignoredups |
sudo cp /etc/network/interfaces /etc/network/interfacesoriginal | |
sudp rm /etc/network/interfaces | |
sudo nano /etc/network/interfaces | |
---------------------------------- | |
COPY | |
---------------------------------- | |
auto lo | |
iface lo inet loopback | |
auto eth0 |
#include <stdio.h> | |
#include <stdarg.h> | |
#include <string.h> | |
void vprint(const char *fmt, va_list argp) | |
{ | |
char string[200]; | |
if(0 < vsprintf(string,fmt,argp)) // build string | |
{ | |
HAL_UART_Transmit(&huart1, (uint8_t*)string, strlen(string), 0xffffff); // send message via UART |
import sys | |
import os | |
from PIL import Image | |
#Directorry input and output | |
image_folder = sys.argv[1] | |
output_folder = sys.argv[2] | |
#check if putput is exist | |
if not os.path.exists(output_folder): |