User:Simonea

Enrolled in ECE 597 at Rose-Hulman Institute of Technology, working on ECE597 Interactive Pong

Lab 5 Part C
I found the following makefile to work, while the suggested alterations and the file in "solutions/lab05c_x86_configuro/app" did not work for me:
 * 1) Makefile
 * 2) x86 makefile for lab 5 part c.
 * 3) **NOTE: ensure that the values in setpaths.mak are set properly for where
 * 4) 	 the actual packages are
 * 1) **NOTE: ensure that the values in setpaths.mak are set properly for where
 * 2) 	 the actual packages are
 * 1) 	 the actual packages are

include ../../setpaths.mak

CC := $(LINUX86_GCC) CC_ROOT := $(LINUX86_DIR) CFLAGS := -g LINKER_FLAGS := -lstdc++
 * 1) Variables

CONFIG := app_cfg XDC:=$(XDC_INSTALL_DIR)/xdc CONFIGURO:= $(XDC_INSTALL_DIR)/xs xdc.tools.configuro export XDCPATH:=/home/user/rtsc_primer/examples;$(XDCROOT) TARGET  := gnu.targets.Linux86 PLATFORM := host.platforms.PC
 * 1) Configuro Vars

.PHONY:all all:app.x86U

.PHONY : clean clean : @rm -rf app.x86U @rm -rf app.o	@rm -rf $(CONFIG)

app.x86U : app.o $(CONFIG)/linker.cmd @$(CC) $(CFLAGS) $(LINKER_FLAGS) $^ -o $@ @echo $@ successfully created
 * 1) Primary

%.o : %.c compiler.opt @$(CC) $(CFLAGS) $(shell cat $(CONFIG)/compiler.opt) -c $< -o $@

compiler.opt linker.cmd : $(CONFIG).cfg @$(CONFIGURO) -c $(CC_ROOT) -t $(TARGET) -p $(PLATFORM) -o $(CONFIG) $^ @echo "Configuro has completed; it's results are in $(CONFIG) "

Chapter 6 Listings
{| ! Number ! Caption ! Listing if (execute_command) { 841        run_init_process(execute_command); 842        printk(KERN_WARNING "Failed to execute %s.  Attempting " 843                     "defaults...\n", execute_command); 844    } 845     run_init_process("/sbin/init"); 846    run_init_process("/etc/init"); 847    run_init_process("/bin/init"); 848    run_init_process("/bin/sh"); 849 850    panic("No init found.  Try passing init= option to kernel. " 851           "See Linux Documentation/init.txt for guidance."); simonea@simonea-2:/etc$ ls -dl rc* drwxr-xr-x 2 root root 4096 2010-03-09 21:35 rc0.d drwxr-xr-x 2 root root 4096 2010-03-09 21:35 rc1.d drwxr-xr-x 2 root root 4096 2010-03-09 21:35 rc2.d drwxr-xr-x 2 root root 4096 2010-03-09 21:35 rc3.d drwxr-xr-x 2 root root 4096 2010-03-09 21:35 rc4.d drwxr-xr-x 2 root root 4096 2010-03-09 21:35 rc5.d drwxr-xr-x 2 root root 4096 2010-03-09 21:35 rc6.d -rwxr-xr-x 1 root root 306 2008-08-24 14:34 rc.local drwxr-xr-x 2 root root 4096 2010-03-09 00:51 rcS.d root@beagleboard:~# ls -dl /etc/rc* drwxr-xr-x 2 root root 4096 Mar 16 2010 /etc/rc0.d drwxr-xr-x 2 root root 4096 Mar 16  2010 /etc/rc1.d drwxr-xr-x 2 root root 4096 Mar 16  2010 /etc/rc2.d drwxr-xr-x 2 root root 4096 Mar 16  2010 /etc/rc3.d drwxr-xr-x 2 root root 4096 Mar 16  2010 /etc/rc4.d drwxr-xr-x 2 root root 4096 Mar 16  2010 /etc/rc5.d drwxr-xr-x 2 root root 4096 Mar 16  2010 /etc/rc6.d drwxr-xr-x 2 root root 4096 Mar 16 10:14 /etc/rcS.d simonea@simonea-2:/etc$ ls -ls rc5.d/ total 4 4 -rw-r--r-- 1 root root 556 2008-08-12 10:09 README 0 lrwxrwxrwx 1 root root 18 2008-08-24 14:34 S10sysklogd -> ../init.d/sysklogd 0 lrwxrwxrwx 1 root root 15 2008-08-24 14:34 S11klogd -> ../init.d/klogd 0 lrwxrwxrwx 1 root root 15 2008-08-24 14:35 S12acpid -> ../init.d/acpid 0 lrwxrwxrwx 1 root root 14 2008-08-24 14:46 S12dbus -> ../init.d/dbus 0 lrwxrwxrwx 1 root root 22 2009-02-03 11:39 S14avahi-daemon -> ../init.d/avahi-daem                   on 0 lrwxrwxrwx 1 root root  14 2008-08-29 20:58 S15bind -> ../init.d/bind 0 lrwxrwxrwx 1 root root 15 2008-09-02 14:27 S15bind9 -> ../init.d/bind9 0 lrwxrwxrwx 1 root root 13 2008-08-24 15:46 S16ssh -> ../init.d/ssh 0 lrwxrwxrwx 1 root root 23 2008-08-29 21:08 S17mysql-ndb-mgm -> ../init.d/mysql-ndb                   -mgm 0 lrwxrwxrwx 1 root root 19 2008-08-29 21:08 S18mysql-ndb -> ../init.d/mysql-ndb 0 lrwxrwxrwx 1 root root 15 2008-08-29 21:08 S19mysql -> ../init.d/mysql 0 lrwxrwxrwx 1 root root 14 2008-09-02 14:51 S20dhcp -> ../init.d/dhcp 0 lrwxrwxrwx 1 root root 15 2008-08-24 14:40 S20exim4 -> ../init.d/exim4 0 lrwxrwxrwx 1 root root 20 2008-08-25 09:50 S20fancontrol -> ../init.d/fancontrol 0 lrwxrwxrwx 1 root root 17 2008-08-25 09:50 S20hddtemp -> ../init.d/hddtemp 0 lrwxrwxrwx 1 root root 25 2008-08-24 16:37 S20inetutils-inetd -> ../init.d/inetuti                   ls-inetd 0 lrwxrwxrwx 1 root root 20 2008-08-24 14:40 S20nfs-common -> ../init.d/nfs-common 0 lrwxrwxrwx 1 root root 27 2008-09-03 00:59 S20nfs-kernel-server -> ../init.d/nfs-k                   ernel-server 0 lrwxrwxrwx 1 root root 23 2008-08-24 14:40 S20openbsd-inetd -> ../init.d/openbsd-i                   netd 0 lrwxrwxrwx 1 root root 14 2010-02-12 16:30 S20pimd -> ../init.d/pimd 0 lrwxrwxrwx 1 root root 25 2008-08-24 14:40 S20policycoreutils -> ../init.d/policyc                   oreutils 0 lrwxrwxrwx 1 root root 15 2010-03-09 21:35 S20rsync -> ../init.d/rsync 0 lrwxrwxrwx 1 root root 15 2008-09-02 14:26 S20samba -> ../init.d/samba 0 lrwxrwxrwx 1 root root 23 2008-08-28 13:54 S20smartmontools -> ../init.d/smartmont                   ools 0 lrwxrwxrwx 1 root root 17 2009-12-06 18:23 S20vboxdrv -> ../init.d/vboxdrv 0 lrwxrwxrwx 1 root root 16 2009-01-04 02:15 S20xinetd -> ../init.d/xinetd 0 lrwxrwxrwx 1 root root 13 2009-12-06 18:23 S21fam -> ../init.d/fam 0 lrwxrwxrwx 1 root root 13 2008-08-24 15:54 S23ntp -> ../init.d/ntp 0 lrwxrwxrwx 1 root root 13 2009-01-04 09:41 S24hal -> ../init.d/hal 0 lrwxrwxrwx 1 root root 15 2008-08-24 14:54 S25mdadm -> ../init.d/mdadm 0 lrwxrwxrwx 1 root root 25 2008-09-03 00:56 S25nfs-user-server -> ../init.d/nfs-use                   r-server 0 lrwxrwxrwx 1 root root 22 2009-09-06 17:46 S40dhcp3-server -> ../init.d/dhcp3-serv                   er 0 lrwxrwxrwx 1 root root  24 2008-08-29 21:08 S40mythtv-backend -> ../init.d/mythtv-b                   ackend 0 lrwxrwxrwx 1 root root 17 2008-09-02 20:22 S41apcupsd -> ../init.d/apcupsd 0 lrwxrwxrwx 1 root root 13 2008-08-24 14:40 S89atd -> ../init.d/atd 0 lrwxrwxrwx 1 root root 14 2008-08-24 14:34 S89cron -> ../init.d/cron 0 lrwxrwxrwx 1 root root 17 2008-08-24 15:45 S91apache2 -> ../init.d/apache2 0 lrwxrwxrwx 1 root root 18 2009-02-27 12:58 S99fail2ban -> ../init.d/fail2ban 0 lrwxrwxrwx 1 root root 18 2008-08-24 14:34 S99rc.local -> ../init.d/rc.local 0 lrwxrwxrwx 1 root root 19 2008-08-24 14:34 S99rmnologin -> ../init.d/rmnologin 0 lrwxrwxrwx 1 root root 21 2008-09-03 00:37 S99shorewall -> /etc/init.d/shorewall 0 lrwxrwxrwx 1 root root 23 2008-08-24 14:34 S99stop-bootlogd -> ../init.d/stop-boot                   logd 0 lrwxrwxrwx 1 root root 18 2008-08-24 14:53 S99webmin -> /etc/init.d/webmin root@beagleboard:/etc# ls -ls rc5.d/ total 0 0 lrwxrwxrwx 1 root root 16 Mar 16 2010 S02dbus-1 -> ../init.d/dbus-1 0 lrwxrwxrwx 1 root root 20 Mar 16 2010 S05led-config -> ../init.d/led-config 0 lrwxrwxrwx 1 root root 18 Mar 16 2010 S10dropbear -> ../init.d/dropbear 0 lrwxrwxrwx 1 root root 14 Mar 16 2010 S20apmd -> ../init.d/apmd 0 lrwxrwxrwx 1 root root 16 Mar 16 2010 S20syslog -> ../init.d/syslog 0 lrwxrwxrwx 1 root root 22 Mar 16 2010 S21avahi-daemon -> ../init.d/avahi-daemon 0 lrwxrwxrwx 1 root root 24 Mar 16 2010 S28NetworkManager -> ../init.d/NetworkManager 0 lrwxrwxrwx 1 root root 20 Mar 16 2010 S50usb-gadget -> ../init.d/usb-gadget 0 lrwxrwxrwx 1 root root 16 Mar 16 2010 S99gpe-dm -> ../init.d/gpe-dm 0 lrwxrwxrwx 1 root root 19 Mar 16 2010 S99rmnologin -> ../init.d/rmnologin
 * 6-2
 * Final Boot Steps from main.c
 * Final Boot Steps from main.c
 * 6-4
 * Runlevel Directory Structure
 * Runlevel Directory Structure
 * 6-4
 * Runlevel Directory Structure for BeagleBoard
 * Runlevel Directory Structure for BeagleBoard
 * 6-5
 * Example Runlevel Directory
 * Example Runlevel Directory
 * 6-5
 * Example Runlevel Directory for BeagleBoard
 * Example Runlevel Directory for BeagleBoard