Difference between kernel load address and entry point

Load Address is RAM location where the kernel binary image is to be copied. Entry Point is the Location of the copied binary to be executed by uboot to boot kernel.

Your RAM is mapped at 80000000 and kernel LOAD ADDRESS is 80008000. bootm command uncompress the uImage from copied image location to 80008000 address and then calls the kernel entry point (may be the same address : 80008000) to execute the kernel.

Why all the pins on a chip are not GPIOs?

All the pins in SOC are not GPIO. A specific group of pins mapped as GPIO. Other pins are configured for specific protocols like DDR, SPI, I2C... etc. GPIO is generic pins can be used for any purpose based on user requirement. It can be used for handling IRQs, trigger Resets, Glow LEDs..etc.

for example, Consider a FPGA is connected to SOC via GPIOs. User need to program the FPGA via these GPIO pins. In SOC side user need to write a specific program with mentioned sequence to drive those GPIO to program the FPGA config file

Installation PHP SOAP on CentOS7 in PHP7

Install "php-soap":
sudo yum install php70w-soap

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.digistar.vn
* epel: epel.mirror.srv.co.ge
* extras: centos-hn.viettelidc.com.vn
* nux-dextop: mirror.li.nux.ro
* updates: mirror.digistar.vn
* webtatic: sp.repo.webtatic.com

Add CSS files and JavaScript files at the bottom of a page in Drupal 7

template_preprocess_html() in template.php file. Preprocess variables for html.tpl.php

function themename_preprocess_html(&$variables) {

  // Add external file
  drupal_add_css('https://fonts.googleapis.com/css?family=Roboto:400,300,500,700',array('type' => 'external'));

  // Add Javascript file at the bottom of a page
  drupal_add_js('/sites/all/themes/purple/js/bootstrap.min.js', array('type' => 'file', 'scope' => 'footer', 'weight' => 10));



How to render menu programatically in Drupal 7?

In template.php file you can add the below code:

$menu = menu_tree_output(menu_tree_all_data('main-menu', null, 1));
$variables['menu'] = drupal_render($menu);

Page.tpl.php (render the main menu tree in the page.tpl.php like this.)
<?php print $menu; ?>

menu_tree_all_data($menu_name, $link = NULL, $max_depth = NULL)

Installation PHP, Apache, MySQL, PhpMyAdmin On Ubuntu

sudo apt-get update
sudo apt-get upgrade (optional)

sudo apt-get install mysql-server mysql-client

sudo apt-get install apache2

sudo apt-get install php5 libapache2-mod-php5 php5-mysql

Restart Apache
/etc/init.d/apache2 restart

sudo apt-get install phpmyadmin

I don’t like to use Apache’s default http folder /var/www so I need to update the apache2.conf file:
sudo gedit /etc/apache2/apache2.conf

Clean URLs with Apache 2 on Ubuntu

Open terminal: Ctrl+Alt+T

1)  sudo a2enmod rewrite
2) sudo apache2ctl -M   (and seeing if rewrite_module is on the list.)
3) sudo gedit /etc/apache2/sites-available/default
4) change text "AllowOverride None" to "AllowOverride All"
5) sudo /etc/init.d/apache2 reload


If you are running Ubuntu 14.04+:
sudo gedit /etc/apache2/apache2.conf
sudo gedit /etc/apache2/sites-available/default

Refer: https://www.drupal.org/node/134439