Posts

Showing posts with the label OS

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...

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 {          ...

Custom Command

Image
Hi guys~! Today I got some issue on Ubuntu16.04. Although the Ubuntu is linux base, in ubuntu, we can't use root to login. Or u have to spend time to figure it out. So, the issue I met is that I tried to link serial port by some IDE, such as Qt, but the ttyUSB or ttyS0 ports are set as 550 permission. To use the port correctly u have to use root or sudo, but u can't run the Qt as root directly like Windows, in which u just right clicked and run as Administrator. Things u have to do is : cd /urpath/Qt/Tolls/QtCreator/bin sudo ./qtcreator So... the things I gonna teach u is ... how to write a custom command ~~ LOL, Sorry for tell a long story before the tutorial ahh. First of all, write the command u wanna use in txt or .sh whatever u want command : cd /urpath/Qt/Tolls/QtCreator/bin sudo ./qtcreator A common way to handle this is to use /bin directory, mkdir ~/bin put ur script in the folder mv yourfile ~/bin make sure u can execute it chmo...

Multiboot CentOS & Ubuntu

Image
Hi everybody, these day I tried to install multi os from on my desktop for work. However, the multi boot with Ubuntu and CentoOS will reach to the grub and grub2 conflicted problem. After few days studying and expirement, I finally figure out the way to fix the  conflict. Okay, now let's start. First of all you have to separate your disk to 2 partition, you might not try to install CentOS at first cause it Ubuntu won't detect the exist of the CentOS. Besides, I tried... many time and many ways. It will never make it to fix the Ubuntu grub to boot up the CentOS. So, Install Ubuntu first, I used Ubuntu 16.04 LTS Then install CentOS7 Now you might see the menu of CentOS's grub with centos and ubuntu in the list. However you will receive "can't find command linux & initrd" when you choose Ubuntu. That's because the centos used linuxefi and initrdefi for boot up. You can saw the command by press "E", and you will understand wh...