Difference between revisions of "User:Xinkeqiong"

From eLinux.org
Jump to: navigation, search
(Created page with 'Hi, My name is Keqiong "Claire" Xin. I'm now pursuing the Master Degree of Computer Engineering in Rose-Hulman. This is my user page for course ECE597 Embedded Linux. [[Category…')
 
Line 1: Line 1:
 
Hi, My name is Keqiong "Claire" Xin. I'm now pursuing the Master Degree of Computer Engineering in Rose-Hulman. This is my user page for course ECE597 Embedded Linux.
 
Hi, My name is Keqiong "Claire" Xin. I'm now pursuing the Master Degree of Computer Engineering in Rose-Hulman. This is my user page for course ECE597 Embedded Linux.
 +
 +
== Chapter 2 ==
 +
 +
{|
 +
! Number
 +
! Page
 +
! Caption
 +
! Listing
 +
|-
 +
| 2-1
 +
| 2-6
 +
| Initial Bootloader Serial Output
 +
| <pre>
 +
Texas Instruments X-Loader 1.4.2 (Feb 19 2009 - 12:01:24)
 +
Reading boot sector
 +
Loading u-boot.bin from mmc
 +
 +
 +
U-Boot 2009.11-rc1 (Jan 08 2010 - 21:19:52)
 +
 +
OMAP3530-GP ES3.1, CPU-OPP2 L3-165MHz
 +
OMAP3 Beagle board + LPDDR/NAND
 +
I2C:  ready
 +
DRAM:  256 MB
 +
NAND:  256 MiB
 +
In:    serial
 +
Out:  serial
 +
Err:  serial
 +
Board revision C4
 +
Die ID #5444000400000000040365fa1400e007
 +
Hit any key to stop autoboot:  0
 +
OMAP3 beagleboard.org #
 +
</pre>
 +
|-
 +
| 2-2
 +
| 2-7
 +
| Loading the Linux Kernel
 +
|
 +
|-
 +
| 2-3
 +
| 2-9
 +
| Linux Final Boot Messages
 +
| <pre>
 +
</pre>
 +
|-
 +
| 2-4
 +
| 2-21
 +
| Hello World, Embedded Style
 +
| <pre>
 +
#include <stdio.h>
 +
 +
int bss_var;        /* Uninitialized global variable */
 +
 +
int data_var = 1;  /* Initialized global variable */
 +
 +
int main(int argc, char **argv)
 +
{
 +
  void *stack_var;            /* Local variable on the stack */
 +
 
 +
  stack_var = (void *)main;  /* Don't let the compiler */
 +
                              /* optimize it out */
 +
 +
  printf("Hello, World! Main is executing at %p\n", stack_var);
 +
  printf("This address (%p) is in our stack frame\n", &stack_var);
 +
 +
  /* bss section contains uninitialized data */
 +
  printf("This address (%p) is in our bss section\n", &bss_var);
 +
 +
  /* data section contains initializated data */
 +
  printf("This address (%p) is in our data section\n", &data_var);
 +
 +
  return 0;
 +
}
 +
</pre>
 +
|-
 +
| 2-5
 +
| 2-22
 +
| Hello Output for Host Computer
 +
| <pre>
 +
</pre>
 +
|-
 +
| 2-5
 +
| 2-22
 +
| Hello Output for Beagle
 +
| <pre>
 +
</pre>
 +
|}
 +
  
 
[[Category:ECE597]]
 
[[Category:ECE597]]

Revision as of 02:19, 22 March 2010

Hi, My name is Keqiong "Claire" Xin. I'm now pursuing the Master Degree of Computer Engineering in Rose-Hulman. This is my user page for course ECE597 Embedded Linux.

Chapter 2

Number Page Caption Listing
2-1 2-6 Initial Bootloader Serial Output
Texas Instruments X-Loader 1.4.2 (Feb 19 2009 - 12:01:24)
Reading boot sector
Loading u-boot.bin from mmc


U-Boot 2009.11-rc1 (Jan 08 2010 - 21:19:52)

OMAP3530-GP ES3.1, CPU-OPP2 L3-165MHz
OMAP3 Beagle board + LPDDR/NAND
I2C:   ready
DRAM:  256 MB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Board revision C4
Die ID #5444000400000000040365fa1400e007
Hit any key to stop autoboot:  0
OMAP3 beagleboard.org # 
2-2 2-7 Loading the Linux Kernel
2-3 2-9 Linux Final Boot Messages

2-4 2-21 Hello World, Embedded Style
#include <stdio.h>

int bss_var;        /* Uninitialized global variable */

int data_var = 1;   /* Initialized global variable */

int main(int argc, char **argv)
{
  void *stack_var;            /* Local variable on the stack */
  
  stack_var = (void *)main;   /* Don't let the compiler */
                              /* optimize it out */

  printf("Hello, World! Main is executing at %p\n", stack_var);
  printf("This address (%p) is in our stack frame\n", &stack_var);

  /* bss section contains uninitialized data */
  printf("This address (%p) is in our bss section\n", &bss_var);

  /* data section contains initializated data */
  printf("This address (%p) is in our data section\n", &data_var);

  return 0;
}
2-5 2-22 Hello Output for Host Computer

2-5 2-22 Hello Output for Beagle