Posts

Showing posts from 2018

UBoot with iMX6 - Part 1

Image
UBoot On iMX6 - Part 1 This tutorial series just including u-boot, no kernel and image will be mentioned. Platform iMX6 customized board Sabre SD platform LPDDR2 bases RS232 output Both Windows and Ubuntu PC is needed. Introduction What is u-boot? For me, I'll consider it as a BIOS or boot loader in short. For detial you can see the ref. below: Ref :  https://en.wikipedia.org/wiki/Das_U-Boot In this tutorial I'll focus on how uboot setup the controller and drive DRAM up for used. With minimum devices, only processer, DRAM and output / control with RS232, we can bootup the board and load OS with very simple hardware. If you wondering the setting of other devices like PCIe, USB .etc. you can work on those after  you finished or understand this series. Cuz this are the minimum requirement of a system, after this series you can understand tutorial like THIS rapidly. (Chinese) Create a u-boot image Ok! Let's start it! To b...

Can't find pip3 ? Here is it!

Image
Haven't update new stuff for a long time! Here comes some annoying stuff of Python3! PIP3 installed incorrectly Some times, after installed python3 manually, you some how installed it with sudo apt-get install python3-pip again. And you might get the issue like... Command «pip3» was not found, maybe you wanted to say: The command «pip» from the package «python-pip» (universe) pip3: command not found Don't be afraid! Just do what normal people come up with at the first -- Reinstall it! XD This might work in Ubuntu base linux. sudo apt-get remove python3-pip sudo apt-get install python3-pip If you are in CentOS or something try: sudo dnf reinstall python3-pip In Ubuntu using python3-pip doesn't work, I already did it~ Ok, now you can run upgrade, cuz default pip3 is version 8.0.1 sudo pip3 install --upgrade pip And... you'll found your pip DEAD, if u are as lucky as I did. Q__Q PIP3 not work while PIP3.5 did This is what u might get from pip3...

Install chrome on CentOS

Image
When installing CentOS7, This might be one of application everybody probably wanna installed. Google Chrome! Just few step, you can install it! 1. Add google repo to your yum. $ vim /etc/yum.repos.d/google.repo or $ nano /etc/yum.repos.d/google.repo Add content:  we are CentOS so...use "rpm" instead. [google64] name=Google - x86_64 baseurl=http://dl.google.com/linux/ rpm /stable/x86_64 enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub And install! $ sudo yum install google-chrome-stable Now you can have chrome ! THE END                    provide

PXE server (Preboot Execution Environment)

PXE server (Preboot Execution Environment) Combine DHCP service as well as tftp service. Provide ip address through client MAC address, and send boot image for boot up. Condition NIC (Network interface card) have to support PXE function. DHCP and TFTP services are needed. DHCP Ubuntu Install : sudo apt-get install -y isc-dhcp-server Set NIC : vim /etc/default/isc-dhcp-server INTERFACES=<Interface Name> Set Config: sudo vim /etc/dhcp/dhcpd.conf CentOS7 Install : sudo yum install -y dhcp Set NIC : vim /etc/sysconfig/dhcpd DHCPDARGS=<Interface Name> Set Config : vim /etc/dhcp/dhcpd.conf DHCP config (Ubuntu & CentOS) ignore client-updates; default-lease-time 600; max-lease-time 7200; option routers 192.168.1.254; option broadcast-address 192.168.1.255; allow booting; allow bootp; subnet 192.168.1.0 netmask 255.255.255.0 {          ...